{% extends "base.html" %} {% block title %}Case Details — LegalEase AI{% endblock %} {% block content %}
Back to Dashboard

Case #{{ case.id }}

Submitted {{ case.created_at.strftime('%B %d, %Y at %I:%M %p') }}

{{ case.category or 'Unclassified' }} {% if case.status == 'reviewed' %} Reviewed {% else %} {{ case.status | title }} {% endif %}
{% if client %}
Client Information
{{ client.full_name[0].upper() }}
Full Name
{{ client.full_name }}
Email
{{ client.email }}
City
{{ client.city or '—' }}
Member Since
{{ client.created_at.strftime('%b %Y') }}
{% endif %}
Client's Case Description
{{ case.description }}
AI Case Summary
{% if case.summary %}

{{ case.summary }}

{% else %}

No AI summary available.

{% endif %}
AI Legal Guidance (originally written for client)
This guidance was generated by AI for the client when they first submitted the case. Use the AI Petition Drafting tool in Virtual Office for lawyer-specific drafting.
{% if case.legal_guidance %} {% for line in case.legal_guidance.split('\n') %} {% if line.strip() %}
{{ line.strip().lstrip('•-').strip() }}
{% endif %} {% endfor %} {% else %}
No legal guidance available.
{% endif %}
{% if appointments %}
Appointments for this Case
{% for appt in appointments %} {% endfor %}
Date Time Status Notes Action
{{ appt.appointment_date }} {{ appt.appointment_time }} {% if appt.status == 'confirmed' %} Confirmed {% elif appt.status == 'cancelled' %} Cancelled {% else %} Pending {% endif %} {{ appt.notes or '—' }} {% if appt.status == 'pending' %}
{% else %} {% endif %}
{% endif %}
{% endblock %}